<html lang="en">
  <head>
    <meta name="robots" content="noindex"/>
    <script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-26406144-13"/>
    <script src="/static/js/gtag.js"/>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no"/>
    <meta name="generator" content="made with love by dartdoc 0.28.4"/>
    <meta name="description" content="pana API docs, for the Dart programming language."/>
    <title>pana - Dart API docs</title>
    <link rel="alternate" href="/documentation/pana/latest/"/>
    <link rel="canonical" href="https://pub.dartlang.org/documentation/pana/0.12.2/"/>
    <link rel="stylesheet" type="text/css" href="/static/css/github-markdown.css?hash=t2ti0tfkd3q7dsh5njovil42c3bnhf5s"/>
    <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet"/>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
    <link rel="stylesheet" href="static-assets/github.css"/>
    <link rel="stylesheet" href="static-assets/styles.css"/>
    <link rel="icon" href="static-assets/favicon.png"/>
  </head>
  <body>
    <div id="overlay-under-drawer"/>
    <header id="title">
      <button id="sidenav-left-toggle" type="button"></button>
      <a class="hidden-xs" href="/">
        <img src="/static/img/dart-logo.svg?hash=gqea88bp2ii6tqf5rn5p8jtg22mma809" style="height: 30px; margin-right: 1em;"/>
      </a>
      <ol class="breadcrumbs gt-separated dark hidden-xs">
        <li>
          <a href="/packages/pana/versions/0.12.2">pana package</a>
        </li>
        <li class="self-crumb">documentation</li>
      </ol>
      <div class="self-name">pana</div>
      <form class="search navbar-right" role="search">
        <input type="text" id="search-box" autocomplete="off" disabled="" class="form-control typeahead" placeholder="Loading search..."/>
      </form>
    </header>
    <main>
      <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
        <header id="header-search-sidebar" class="hidden-l">
          <form class="search-sidebar" role="search">
            <input type="text" id="search-sidebar" autocomplete="off" disabled="" class="form-control typeahead" placeholder="Loading search..."/>
          </form>
        </header>
        <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
          <li>
            <a href="/packages/pana/versions/0.12.2">pana package</a>
          </li>
          <li class="self-crumb">documentation</li>
        </ol>
        <h5 class="hidden-xs">
          <span class="package-name">pana</span>
          <span class="package-kind">package</span>
        </h5>
        <ol>
          <li class="section-title">Libraries</li>
          <li>
            <a href="models/models-library.html">models</a>
          </li>
          <li>
            <a href="pana/pana-library.html">pana</a>
          </li>
        </ol>
      </div>
      <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
        <section class="desc markdown markdown-body">
          <p>
            <a href="https://travis-ci.org/dart-lang/pana">
              <img src="https://travis-ci.org/dart-lang/pana.svg?branch=master" alt="Build Status"/>
            </a>
          </p>
          <p>A library for analyzing Dart packages.</p>
          <ul>
            <li>Validates the code using 
              <a href="https://www.dartlang.org/tools/analyzer">Dart Analyzer</a>.
            </li>
            <li>Checks code formatting.</li>
            <li>Checks for outdated dependencies.</li>
            <li>Infers supported platforms: Flutter, web, and/or server.</li>
          </ul>
          <p>Used by the 
            <a href="https://pub.dartlang.org/">Dart Package site</a>.
          </p>
          <h2 id="use-as-an-executable">Use as an executable</h2>
          <h3 id="installation">Installation</h3>
          <pre class="language-console">
            <code class="language-console">> pub global activate pana
</code>
          </pre>
          <h3 id="usage">Usage</h3>
          <p>You can specify either a package (+ version) or a local directory to analyze:</p>
          <pre class="language-dart">
            <code>Usage: pana [&lt;options>] &lt;published package name> [&lt;version>]
       pana [&lt;options>] --source path &lt;local directory>

Options:
      --flutter-sdk     The directory of the Flutter SDK.
  -j, --json            Output log items as JSON.
  -s, --source          The source where the package is located (hosted on https://pub.dartlang.org, or local directory path).
                        [hosted (default), path]
  
      --hosted-url      The server that hosts &lt;package>.
                        (defaults to "https://pub.dartlang.org")
  
      --verbosity       Configure the details in the output.
                        [compact, normal (default), verbose]
  
      --[no-]warning    Shows the warning message before potentially destructive operation.
                        (defaults to on)
</code>
          </pre>
        </section>
        <section class="summary">
          <h2>Libraries</h2>
          <dl>
            <dt id="models">
              <span class="name">
                <a href="models/models-library.html">models</a>
              </span>
            </dt>
            <dd></dd>
            <dt id="pana">
              <span class="name">
                <a href="pana/pana-library.html">pana</a>
              </span>
            </dt>
            <dd></dd>
          </dl>
        </section>
      </div>
      <!-- /.main-content -->
      <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right"></div>
    </main>
    <footer>
      <span class="no-break">
    pana 0.12.2
  </span>
    </footer>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"/>
    <script src="static-assets/typeahead.bundle.min.js"/>
    <script src="static-assets/highlight.pack.js"/>
    <script src="static-assets/URI.js"/>
    <script src="static-assets/script.js"/>
  </body>
</html>
